package main

func countVowelSubstrings(word string) int {
	count := 0
	volumnM := map[byte]byte{
		'a': 1,
		'e': 1,
		'i': 1,
		'o': 1,
		'u': 1,
	}
	for i := 0; i < len(word); i++ {
		m := map[byte]byte{}
		for j := i; j < len(word); j++ {
			m[word[j]] = 1
		}

		num := 0
		for k, _ := range volumnM {
			_, ok := m[k]
			if !ok {
				break
			}
			num++
		}

		if num == len(volumnM) {
			count++
		}
	}
	return count
}
